import { connectRouter } from 'connected-react-router';
import { combineReducers } from 'redux';
import { History } from 'history';
import { IAppState } from '../../types/store';
import testReducer from './test.reducer';

const createRootReducer = (history: History) =>
  combineReducers<IAppState>({
    router: connectRouter(history),
    test: testReducer,
  });

export default createRootReducer;
